(function() {
  $(function() {
    var teamPlay, _tempTeamShow, _tempTeamStart, _tempTeamTotle;
    _tempTeamTotle = $("#team_select").children().length;
    _tempTeamStart = 1;
    _tempTeamShow = 0;
    teamPlay = function() {
      $("#team_select").children().eq(_tempTeamStart - 1).removeClass("selected");
      _tempTeamShow = _tempTeamStart;
      _tempTeamStart++;
      if (_tempTeamStart > _tempTeamTotle) {
        _tempTeamStart = 1;
      }
      $("#team_select").children().eq(_tempTeamStart - 1).addClass("selected");
      return $("#team" + _tempTeamShow).fadeOut(500, function() {
        return $("#team" + _tempTeamStart).fadeIn(500);
      });
    };
    window.setInterval(teamPlay, 5000);
  });

}).call(this);
